// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Rectangle {
    id: rectangle1
    width: 350
    height: 35

    Image {
        id: image1
        x: 2
        y: 2
        width: 30
        height: 29
        source: if (read == "false") "Assets/email/envelope.png"; else "Assets/email/shaded.png";
    }

    Text {
        id: text1
        x: 43
        y: 0
        text: subject
        font.bold: (read == "false")
        font.pixelSize: 12
    }

    Text {
        id: text2
        x: 43
        y: 17
        width: 294
        height: 14
        color: "#383535"
        text: msg
        wrapMode: Text.WordWrap
        font.pixelSize: 12
    }

    Text {
        id: text3
        x: 279
        y: 0
        color: "#ff0000"
        text: time
        anchors.right: parent.right
        anchors.rightMargin: 5
        font.bold: true
        font.pixelSize: 12
    }

    Text {
        id: text4
        y: 0
        text: "- "+name
        anchors.left: text1.right
        anchors.leftMargin: 5
        font.pixelSize: 12
    }
}
